package utils;

import org.apache.shiro.crypto.hash.Md5Hash;

public class Encrypt {

 //高强度加密算法,不可逆
 public static String md5(String password, String salt){
  return new Md5Hash(password,salt,2).toString();
 }

 //调用main方法生成密码
 public static void main(String[] args) {
  System.out.println(new Md5Hash("123456","tony",2).toString());
 }
}
